package com.csl.hotel.util;

public enum FuncCodes {
	
	FUNC_CODE_SAVE("jw_saveStay",1),FUNC_CODE_QUERY("jw_queryStayFeedback",2);
	private String name;
	private int index;
	private FuncCodes(String name,int index){
		this.name=name;
		this.index=index;
	}
	public static String getName(int index){
		for(FuncCodes code:FuncCodes.values()){
			if (code.getIndex()==index) {
				return code.name;
			}
		}
		return null;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	
	
//	FUNC_CODE_SAVE("SAVE","jw_saveStay"),
//	FUNC_CODE_QUERY("QUERY","jw_saveStay");
}
